package com.ipartek.pruebas.bbdd;

import com.ipartek.pruebas.excepciones.ConnectionFactoryException;

public abstract class ConnectionFactory {
	
	 public static final int ODBC    =1;
	 public static final int TXTFILE =2;

	 
	 public abstract AlumnoDAO getAlumnoDAO();
	 
	 
	 public static ConnectionFactory getConnectionFactory ( int tipo ) throws  ConnectionFactoryException {
		
		switch (tipo) {
		case ODBC:
			return new AlumnoODBCDAO();
		case TXTFILE:
			//return new AlumnoTXTDAO();			
		}
		return null;
		 
		 
	 }


	
	}
	 

